package com.panshi.tools;

import java.io.Serializable;

public class UserLogin implements Serializable {

    /**
     * 用户id
     */
    private int id;

    /**
     * 用户名
     */
    private String userMail;

    /**
     * 密码
     */
    private String password;

    /**
     * 权限
     */
    private String perms;

    public UserLogin(){}

    public UserLogin(int id, String userMail, String password, String perms) {
        this.id = id;
        this.userMail = userMail;
        this.password = password;
        this.perms = perms;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserMail() {
        return userMail;
    }

    public void setUserMail(String userMail) {
        this.userMail = userMail;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    @Override
    public String toString() {
        return "UserLogin{" +
                "id=" + id +
                ", userMail='" + userMail + '\'' +
                ", password='" + password + '\'' +
                ", perms='" + perms + '\'' +
                '}';
    }
}
